import { request } from '@/utils/request';
import CRUD from '@/utils/request/CRUD';

// 文件CRUD
export const fileConfigCRUD = CRUD('/infra/file-config');

// 更新文件配置为主配置
export function updateFileConfigMaster(id: number) {
  return request.put({
    url: '/infra/file-config/update-master?id=' + id
  });
}

// 测试文件配置
export function testFileConfig(id: number) {
  return request.get({
    url: '/infra/file-config/test?id=' + id
  });
}

